/**
 * 防止重覆按鈕, 是用 token 來做, 如果用 javascript 來控制, 就無法解決使用者按下"重新整理"的問題。<br>
 * 目前這邊只可以解決 reload 的問題
 */

package token.basic;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.e885.util.web.CommandToken;
import common.CommonHttpServlet;

/**
 * url:http://127.0.0.1:8080/JSP/token/basicTokenAdd<br>
 * 會產生一個 token, 並導到 add.jsp
 * 
 * @author Eric.Kao(gau168.gau@msa.hinet.net)
 * @version 1.0
 * @company E885 Group
 * @copyright Copyright (c) 2001-2008
 */

public class BasicTokenAddServlet extends CommonHttpServlet
{
	private static final long serialVersionUID = -1174797788992986121L;

	protected void service( HttpServletRequest request, HttpServletResponse response ) throws ServletException, IOException
	{
		CommandToken.set( request );

		request.getRequestDispatcher( "/token/basic/add.jsp" ).forward( request, response );
	}

}
